<?php

namespace App\Console\Commands\Tasks\Data;

use Illuminate\Console\Command;

class SyncGameKeepStat extends Command
{
    //命令名  type //1 day  2 week 3 month
    protected $signature = 'sync:keep_game_stat {type}';

    //命令描述
    protected $description = '同步历史平台留存和游戏留存';

    // 业务处理
    public function handle()
    {
        set_time_limit(0);

        $t = (int)$this->argument('type');   //1  day  2 week 3 month
//        同步历史游戏留存
        app('repo_account_check')->syncGameKeep($t);

    }
}